//
//  MoreCertifyViewController.m
//  bitcoin
//
//  Created by caiyajun on 2018/5/9.
//  Copyright © 2018年 比特币. All rights reserved.
//

#import "MoreCertifyViewController.h"

@interface MoreCertifyViewController ()
@property (weak, nonatomic) IBOutlet UILabel *emailLabel;
@property (weak, nonatomic) IBOutlet UILabel *geogleLabel;

@end

@implementation MoreCertifyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIBarButtonItem *back = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"arrowleft-icon"] style:UIBarButtonItemStylePlain target:self action:@selector(backAction:)];
    self.navigationItem.leftBarButtonItem = back;
    
}
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    if ([[UserDefaults objectForKey:K_ISEMAIL] isEqualToString:@"1"]) {
        self.emailLabel.text=@"已开启";
    }else{
        self.emailLabel.text=@"未开启";
    }
    if ([[UserDefaults objectForKey:K_ISGOOGLE] isEqualToString:@"1"]) {
        self.geogleLabel.text=@"已开启";
    }else{
        self.geogleLabel.text=@"未开启";
    }
}
- (void)backAction:(UIBarButtonItem *)sender {
    [self.navigationController popViewControllerAnimated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - Table view data source



- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    
    return 5;
}
-(void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPath{
    if (indexPath.row==0) {
//        [self performSegueWithIdentifier:@"phoneCertifySegue" sender:nil];
    }else if (indexPath.row==1){
        [self performSegueWithIdentifier:@"emailCertifySegue" sender:nil];
    }else if (indexPath.row==2){
        [self performSegueWithIdentifier:@"googleSegue" sender:nil];
    }
    
    
}

@end
